package org.itboys.core.entity.mongo;

import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * @Author：贾琦磊
 * @Date：2018/8/30
 * @Description：
 */
@Entity(value = "SundayCouponOrderSubstract",noClassnameStored = true)
public class SundayCouponOrderSubstract extends BaseMongoEntity{
    /**
     * 满
     */
    private String baseAmount;
    /**
     * 减
     */
    private String subAmount;
    /**
     * 促销单id
     */
    private Long couponId;

    public SundayCouponOrderSubstract() {
    }

    public SundayCouponOrderSubstract(String baseAmount, String subAmount) {
        this.baseAmount = baseAmount;
        this.subAmount = subAmount;
    }

    public String getBaseAmount() {
        return baseAmount;
    }

    public void setBaseAmount(String baseAmount) {
        this.baseAmount = baseAmount;
    }

    public String getSubAmount() {
        return subAmount;
    }

    public void setSubAmount(String subAmount) {
        this.subAmount = subAmount;
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("SundayCouponSubstract{");
        sb.append("baseAmount='").append(baseAmount).append('\'');
        sb.append(", subAmount='").append(subAmount).append('\'');
        sb.append(", couponId=").append(couponId);
        sb.append('}');
        return sb.toString();
    }
}
